<%--
  Created by IntelliJ IDEA.
  User: 宜春
  Date: 2019/9/2
  Time: 7:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<br>
<h2>查询所有的学生</h2>
<%--<h2>${list}</h2>--%>

<table border="1">
    <tr>
        <th>学号</th>
        <th>姓名</th>
        <th>班级</th>
        <th>性别</th>
        <th>年龄</th>
        <th>手机号</th>
    </tr>
    <c:forEach items="${list}" var="s">
    <tr>
        <td align="center">${s.sno}</td>
        <td align="center">${s.sname}</td>
        <td align="center">${s.sclass}</td>
        <td align="center">${s.sex}</td>
        <td align="center">${s.age}</td>
        <td align="center">${s.phone}</td>
    </tr>
    </c:forEach>


    <br>
    <br>
    <br>
</body>
</html>
